home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7930 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: news.primenet.com!not-for-mail
  2. From: gbe@primenet.com (Gary Edstrom)
  3. Newsgroups: comp.lang.c++
  4. Subject: Help Wanted: Win95 Visual C++: Getting a Process ID
  5. Date: 14 Feb 1996 14:41:02 -0700
  6. Organization: Sequoia Software
  7. Sender: root@primenet.com
  8. Message-ID: <3122540a.6354059@news.primenet.com>
  9. X-Posted-By: ip217.lax.primenet.com
  10. X-Newsreader: Forte Agent .99d/32.182
  11.  
  12. I would like to be able to determine if a given process is currently
  13. running on a Windows 95 system, and if it is, to fetch it's process ID
  14. (Or ID's if more than a single instance is running).  I'm sure it can
  15. be done, I just haven't been able to find any information on how to do
  16. it in either the on-line reference or in any of my Windows 95 books.
  17.  
  18. What I want to do is as follows:  We have a program that is currently
  19. made up of 4 different processes.  One of the processes is responsible
  20. for starting all of the others.  Before starting any of the child
  21. processes, however, I want to check if they are already running on the
  22. system and if so, to terminate them before performing a new startup.
  23.  
  24. Can anyone help?
  25.  
  26. --
  27. Gary Edstrom <gbe@primenet.com> | Sequoia Software
  28. PO Box 9573                     | Programming & Technical Services
  29. Glendale CA 91226-0573          | PGP Key ID: 0x1A0D44BD
  30. PGP Fingerprint: 72 AA 4F 73 05 53 89 C6  8A EE F4 EE D1 C0 13 8D 
  31.